package com.xian.im.common.enums;

import lombok.Builder;

/**
 * @program: xian-im-server
 * @description:
 * @author: liru.xian
 * @create: 2021-01-27 12:08
 **/
@Builder
public class RedisKey {

    /**
     *  当前用户是否禁言
     */
    public static class UserMute{
        private  String key = "im:mute:user";
        private  String account;
        private  String groupUniqueId;
        public UserMute(String account,String groupUniqueId){
            this.groupUniqueId =groupUniqueId;
            this.account = account;
        }
        public  String getKey(){
            return key+":"+account+":"+groupUniqueId;
        }
    }
}
